home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / resources / templates / playlist-folder < prev    next >
Encoding:
Text File  |  2007-11-12  |  2.5 KB  |  73 lines

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.       eventCookie="@@@eventCookie@@@" dtvPlatform="@@@dtvPlatform@@@">
  5.  
  6. <head>
  7.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8.     <title>Miro Playlist View</title>
  9.  
  10.     <link href="resource:css/main.css" rel="stylesheet" type="text/css" />
  11.     <script type="text/javascript" src="resource:templates/osxdnd.js" />
  12.     <t:include filename="dynamic.js" />
  13.     <t:execOnLoad><![CDATA[
  14.  
  15. playlist = views.db.getObjectByID(int(kargs['id']))
  16. playlistView = playlist.getView()
  17. playlist.setSearch(None)
  18. thisPlaylistView = views.playlistFolders.filter(lambda x: x is playlist)
  19. childrenView = views.playlists.filterWithIndex(indexes.byFolder, playlist)
  20.  
  21. def updateSearchString(newSearch):
  22.     playlist.setSearch(newSearch)
  23. ]]>
  24.     </t:execOnLoad>
  25.     <t:execOnUnload><![CDATA[
  26. thisPlaylistView.unlink()
  27. ]]>
  28. </t:execOnUnload>
  29. </head>
  30. <body dragdesttype="playlist"
  31.     dragdestdata="playlistfolder-***playlist.getID()***"
  32.     drageffectplaylist="move"
  33.     onkeydown="sendKeyToSearchBox(event);">
  34. <div id="main-titlebar">
  35.     <img id="main-icon" src="resource:images/folder-icon.png" alt="" />
  36.     <div t:updateForView="thisPlaylistView">
  37.         <h1 id="main-title" t:replace="playlist.getTitle()" />
  38.     </div>
  39. </div>
  40.  
  41. <div id="main-container">
  42.     <div t:repeatForView="playlistView" t:repeatTemplate='download-item' t:containerDiv="true" />
  43.     <div class="playlist-end-drag-hitbox"
  44.     dragdesttype="downloadeditem"
  45.     dragdestdata="playlistitem-END"
  46.     drageffectdownloadeditem="move" />
  47. </div>
  48. <div t:updateForView="childrenView">
  49. <div t:showIf="playlistView.len() == 0">
  50.    <div class="channel-blank">
  51.        <div t:showIf="childrenView.len() == 0">
  52.             <div class="channel-message" i18n:translate="">
  53.                 Empty Playlist Folder
  54.             </div>
  55.         </div>
  56.         <div t:showIf="childrenView.len() > 0">
  57.             <div class="channel-message" i18n:translate="">
  58.             This folder contains
  59.             <span t:replace="childrenView.len()" i18n:name="count" />
  60.             playlists, but the playlists do not contain any items.
  61.             </div>
  62.         </div>
  63.         <div t:hideIf="childrenView.len() > 0">
  64.             <div class="channel-message small" i18n:translate="">
  65.                 Drag playlists to this folder to add them.
  66.             </div>
  67.         </div>
  68.     </div>
  69. </div>
  70. </div>
  71. </body>
  72. </html>
  73.